body {
	margin: 0;
	background: #f2f2ff;
	font: 14px Arial, sans-serif;
	color: #223;
}

#page {
	width: 700px;
	max-width: calc(100% - 20px);
	margin: 18px auto;
	background: #fff;
	border: 1px solid #8784bc;
	padding: 12px;
}

h1 {
	margin: 0;
	color: #8784bc;
}

h2 {
	font-size: 16px;
}

hr {
	border: 0;
	border-top: 1px solid #8784bc;
}

input,
select,
button {
	font: inherit;
}

#length {
	width: 72px;
}

#target,
#best-of {
	width: 54px;
}

#lobby-split {
	display: flex;
	align-items: flex-start;
	gap: 42px;
}

#options {
	width: 300px;
}

#options > label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 6px 0;
}

#options > label select {
	max-width: 210px;
}

#options > #start {
	margin-top: 8px;
}

#anki-settings {
	margin: 10px 0;
}

#anki-status {
	margin-left: 6px;
}

#anki-fields {
	margin-top: 6px;
}

#anki-fields label {
	display: block;
	margin: 3px 0;
}

#anki-fields select {
	min-width: 180px;
}

#players {
	flex: 1;
	min-width: 180px;
	margin: 0 0 12px 10px;
}

.player {
	display: flex;
	align-items: center;
	margin: 8px 0;
}

.player img {
	width: 20px;
	height: 20px;
	margin-right: 5px;
}

.player-name.kickable {
	cursor: pointer;
}

.player-name.kickable:hover {
	color: #c00;
	text-decoration: line-through;
}

.public-room {
	border-top: 1px solid #ccc;
	padding: 5px 0;
}

#game {
	text-align: center;
	padding: 20px 0;
}

#series-score {
	margin-bottom: 8px;
	font-weight: bold;
}

#countdown {
	font-size: 64px;
	font-weight: bold;
	margin: 60px 0;
}

#timer-wrap {
	text-align: center;
	margin-bottom: 8px;
}

#timer-icon {
	width: 20px;
	height: 20px;
	vertical-align: middle;
	margin-right: 4px;
}

#scores {
	width: 220px;
	margin: 18px auto;
}

.score {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	text-align: left;
}

.score .user {
	width: 28px;
	height: 28px;
}

.points {
	margin-left: auto;
	font-weight: bold;
	color: #000;
}

.points.penalty {
	animation: penalty-flash 500ms linear;
}

@keyframes penalty-flash {
	0%, 20%, 50% { color: #d00; }
	21%, 49%, 51%, 100% { color: #000; }
}

#prompt {
	font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
	font-size: 76px;
	margin: 35px 0 20px;
	user-select: none;
	-webkit-user-select: none;
}

#prompt.sentence {
	font-size: 32px;
	line-height: 1.4;
}

#prompt.revealed {
	color: #c00;
}

#answer {
	font-size: 24px;
	text-align: center;
	width: 260px;
}

#prompt.sentence + #answer {
	width: 80%;
	max-width: 620px;
}

#summary {
	margin-top: 20px;
}

#match-result {
	font-weight: bold;
	margin-bottom: 8px;
}

.final-score,
.round-row {
	margin: 4px 0;
}

#round-stats,
#records,
#ready-status {
	margin-top: 6px;
}

#records {
	font-size: 12px;
}

#result-actions {
	margin-bottom: 6px;
}

#missed {
	overflow-x: auto;
}

.missed-table {
	border-collapse: collapse;
	margin-top: 8px;
}

.missed-table td {
	padding: 6px 10px;
	text-align: center;
	white-space: nowrap;
}

.missed-word {
	font: 22px "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

.missed-meaning {
	font-size: 12px;
}

#practice {
	margin-top: 12px;
	text-align: center;
}

#practice-progress,
#practice-meaning {
	font-size: 12px;
	margin: 4px 0;
}

#practice-prompt {
	font: 32px "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
	margin: 10px 0;
}

#practice-answer {
	font-size: 18px;
	text-align: center;
	width: 260px;
}

[hidden] {
	display: none !important;
}
