/* PirateFun */
.pf-row {
  background: url(/public/assets/backgrounds/piratefun.jpg);
  background-size: cover;
  min-height: 100vh;
}

.pf-black {background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,1) 100%); border-bottom: 1px solid black; min-height: 100vh;}

.pf-wrap{
  padding: 12px;
  max-width: 980px;
  margin: 0 auto;
}

.pf-top{
  margin-top: 100px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.pf-title{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
}

.pf-sub{
  margin-top: 6px;
  opacity: .9;
  font-size: 13px;
}

.pf-actions{
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pf-btn{
  padding: 8px 12px;
  border-radius: 10px;
}

.pf-btn-danger{
  background: rgba(220,60,60,.18);
  border: 1px solid rgba(220,60,60,.25);
}

.pf-gridrow{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px){
  .pf-gridrow{ grid-template-columns: 1fr; }
}

.pf-board{
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px;
}

.pf-board-title{
  font-weight: 800;
  margin-bottom: 8px;
}

.pf-hint{
  margin-top: 10px;
  opacity: .85;
  font-size: 12px;
  line-height: 1.3;
}

.pf-grid{
  --pf-size: 10;
  display: grid;
  grid-template-columns: repeat(var(--pf-size), 1fr);
  gap: 6px;
}

.pf-cell{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  position: relative;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}

.pf-grid-enemy .pf-cell:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}

.pf-cell:disabled{
  cursor: default;
  opacity: .9;
}

.pf-cell.is-ship{
  background: rgba(80,160,255,.10);
  border-color: rgba(80,160,255,.22);
}

.pf-cell.is-miss::after{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 32%;
  height: 32%;
  border-radius: 999px;
  background: rgba(255,255,255,.30);
}

.pf-cell.is-hit{
  background: rgba(220,60,60,.12);
  border-color: rgba(220,60,60,.28);
}

.pf-cell.is-hit::before,
.pf-cell.is-hit::after{
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 2px;
  background: rgba(255,120,120,.95);
  transform: translateY(-50%) rotate(45deg);
  border-radius: 4px;
}
.pf-cell.is-hit::after{
  transform: translateY(-50%) rotate(-45deg);
}

.pf-log{
  margin-top: 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px;
}

.pf-log-title{
  font-weight: 800;
  margin-bottom: 8px;
}

.pf-log-body{
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.pf-log-line{
  font-size: 12px;
  opacity: .92;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
}
.pf-log-line:last-child{ border-bottom: 0; }
