[draggable] {
  user-select: none;
}
.cletca.over {
  border: 2px dashed red;
}

.cont {
	border: 1px solid black;
	display: inline-block;
	min-height: 120vh;
	width: 49%;
}
.cont2 {
	float: right;
	/*margin-left: 1%;*/
}
h1 {
	text-align: center;
}
.pole {
	border: 1px solid black;
	width: 400px;
	height: 400px;
	display: inline-block;
}
.obertka {
	/*border: 1px solid black;*/
	width: 442px;
	height: 440px;
	display: inline-block;
}
.pole1, .b2 {
	float: right;
}
.cletca, .cletca2 , .forcoord {
	display: inline-block;
	border: 1px solid black;
	width: 40px;
	height: 40px;
	box-sizing: border-box;
	vertical-align: top;
	/*margin: -2px 0px;*/
}
.bukvy {
	font-size: 25px;
	text-align: center;
	vertical-align: baseline;
	display: inline-block;
	/*border: 1px solid black;*/
	width: 40px;
	height: 400px;
	margin-top: 1px;
	box-sizing: border-box;
}
.cifry {
	font-size: 25px;
	text-align: center;
	vertical-align: baseline;
	display: inline-block;
	/*border: 1px solid black;*/
	width: 400px;
	height: 40px;
	box-sizing: border-box;
}
.c1 {
	float: right;
	margin-left: 40px;
}
.c2 {
	float: left;
	margin-right: 40px;
}
.button {
	position: absolute;
	width: 10%;
	height: 5%;
	z-index: 2;
}
#buttonrand {
	top: 2%;
	left: 1%;
}
#buttonagain{
	top: 2%;
	left: 11%;
}
#button {
	top: 5%;
	left: 45%;
}
.butto:hover {
	cursor: pointer;
}
.ships {
	vertical-align: top;
	width: 40%;
	display: inline-block;
	/*border: 1px solid black;*/
	margin: 10px;
}
.corabl {
	float: right;
	display: block;
	height: 40px;
	width: 40px;
	font-size: 25px;
	text-align: center;
	vertical-align: baseline;
	padding-top: 5px;
	border: 1px solid black;
	margin-top: 0px;
}
.cor {
	float: left;
	display: block;
	margin: 5px 10px;
	height: 40px;
	background-color: black;
}
.cor:hover {
	cursor: pointer;
}
.cor1 {
	width: 160px;
}
.cor2 {
	width: 120px;
}
.cor3 {
	width: 80px;
}
.cor4 {
	width: 40px;
}
.corcont {
	vertical-align: top;
	width: 100%;
	height: 50px;
	/*border: 1px solid black;*/
}
.perekl {
	display: inline-block;
	margin-top: 15%;
	margin-left: 10%;
}
.vybor {
	margin: 5px;
}
.selship {
	display: none;
	position: absolute;
	width: 160px;
	height: 40px;
	/*border: 1px solid black;*/
	top: 35%;
	left: 34%;
}
.cellship {
	display: none;
	width: 40px;
	height: 40px;
	background-color: white;
	text-align: left;
	vertical-align: baseline;
	margin-right: -4px;
}
.selship:hover {
	cursor: pointer;
}

/* ===== Игровые состояния клеток (добавлено для завершения игры) ===== */
.cletca, .cletca2 {
	position: relative;
}
.ship {
	background-color: #5a6b7a;
}
.preview-ok {
	background-color: #8fd19e;
}
.preview-bad {
	background-color: #f1a0a0;
}
.preview-remove {
	background-color: #e8b04b;
	cursor: pointer;
}
.hit {
	background-color: #ff5a52;
}
.hit::before,
.hit::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 12%;
	width: 76%;
	height: 4px;
	margin-top: -2px;
	background: #8b0000;
}
.hit::before { transform: rotate(45deg); }
.hit::after  { transform: rotate(-45deg); }
.miss::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: #1565c0;
}
.sunk {
	background-color: #2b2b2b;
}
.sunk.hit::before,
.sunk.hit::after {
	background: #ffffff;
}
.cor.selected {
	outline: 3px solid #1565c0;
	outline-offset: 2px;
}
.cor.depleted {
	opacity: 0.3;
	cursor: default;
}
.shooting .cletca2 {
	cursor: crosshair;
}
.status {
	position: fixed;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid #333;
	border-radius: 6px;
	padding: 6px 16px;
	font-size: 16px;
	font-weight: bold;
	z-index: 5;
	max-width: 60%;
	text-align: center;
}