
.rarsim-avioane{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.ra-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 14px;
}
.ra-badge{
  display:inline-block;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(0,0,0,0.12);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 8px;
}
.ra-title{ margin:0; font-size: 28px; line-height:1.1; }
.ra-subtitle{ margin:6px 0 0; opacity: 0.8; }

.ra-btn{
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  padding:10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 800;
}
.ra-btn:hover{ box-shadow: 0 8px 26px #6c69d7; }

.ra-setup{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ra-setup-left{
  flex: 1 1 320px;
  min-width: 280px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: rgba(0,0,0,0.015);
}

.ra-h3{ margin:0 0 8px; font-size: 18px; }
.ra-help{ margin:0 0 12px; opacity: .85; }

.ra-controls{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ra-control{
  flex: 1 1 220px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background:#fff;
  padding: 10px;
}
.ra-label{
  font-size: 12px;
  font-weight: 800;
  opacity: .75;
  margin-bottom: 8px;
}
.ra-orient{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ra-orient-btn{
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  padding:8px 10px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 800;
  font-size: 12px;
}
.ra-orient-btn.is-active{
  border-color: rgba(0,0,0,0.28);
  box-shadow: 0 8px 18px #6c69d7;
}

.ra-remaining{
  font-weight: 900;
  font-size: 16px;
}

.ra-actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}
.ra-msg{
  min-height: 18px;
  font-weight: 800;
}
.ra-msg.is-error{ color: #b00020; }
.ra-msg.is-ok{ color: #0a7d2a; }

.ra-boards{
  flex: 2 1 520px;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.ra-board-wrap{
  flex: 1 1 320px;
  min-width: 280px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 12px;
  background:#fff;
}
.ra-board-title{
  font-weight: 900;
  margin-bottom: 10px;
}

.ra-board{
  display:grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  user-select: none;
}
.ra-cell{
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
  cursor: pointer;
  position: relative;
}
.ra-cell:hover{ box-shadow: 0 8px 20px #6c69d7; }

.ra-board.is-locked .ra-cell{
  cursor: not-allowed;
  opacity: 0.85;
}

.ra-cell.you-plane{ background: #6c69d7; }
.ra-cell.you-head{ background: rgba(0,0,0,0.10); }

.ra-cell.hit::after{
  content:"";
  position:absolute;
  inset: 22%;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.55);
}
.ra-cell.miss::after{
  content:"";
  position:absolute;
  inset: 35%;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
}

.ra-turn{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  font-weight: 900;
}

.ra-footer{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.ra-note{ opacity: 0.8; }
.ra-cta{
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid rgba(0,0,0,0.22);
}
.ra-cta:hover{ border-bottom-color: rgba(0,0,0,0.55); }

@media (max-width: 720px){
  .ra-title{ font-size: 22px; }
  .ra-board{ gap: 5px; }
  .ra-cell{ border-radius: 9px; }
}
